package com.example.springboot.pojo;

/**
 * 定义返回值的枚举
 *
 * @Author:ChenZhangKun
 * @Date: 2021/7/25 15:19
 */
public enum CodeEnum {
    SUCCESS(200, "请求成功"),
    FAIL(500, "请求失败");
    public final int code;
    public final String msg;

    CodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
